package com.xdf.docmanagementsystem.dao;

import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

import com.xdf.docmanagementsystem.entity.EmergencyContactPerson;
import org.apache.ibatis.annotations.Param;
import com.xdf.docmanagementsystem.common.util.Example;

/**
 * @Description : 紧急联系人
 * @Author : ZK
 * @Date : 2020-06-27 16:53:02
 */
@Repository
public interface EmergencyContactPersonMapper {
    int insert(EmergencyContactPerson record);

    int insertSelective(EmergencyContactPerson record);

    int multiInsert(List<EmergencyContactPerson> list);

    int insertDumplicateKeyUpdate(EmergencyContactPerson record);

    int updateByPrimaryKey(EmergencyContactPerson record);

    int updateByPrimaryKeySelective(EmergencyContactPerson record);

    int multiUpdate(List<EmergencyContactPerson> list);

    int deleteByPrimaryKey(Integer id);

    EmergencyContactPerson selectByPrimaryKey(Integer id);

    List<EmergencyContactPerson> selectAll();

    List<EmergencyContactPerson> selectByParam(EmergencyContactPerson record);

    int updateByExampleSelective(@Param("record") EmergencyContactPerson record, @Param("example") Example example);

    int deleteByExample(@Param("example") Example example);

    List<EmergencyContactPerson> selectByExample(@Param("example") Example example);

    int insertByExampleSelective(@Param("record") EmergencyContactPerson record, @Param("example") Example example);

    long countByExample(@Param("example") Example example);

}